package com.course_design.entity;

import java.util.ArrayList;
import java.util.List;

public class TeacherExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TeacherExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andTeacheridIsNull() {
            addCriterion("teacherId is null");
            return (Criteria) this;
        }

        public Criteria andTeacheridIsNotNull() {
            addCriterion("teacherId is not null");
            return (Criteria) this;
        }

        public Criteria andTeacheridEqualTo(Integer value) {
            addCriterion("teacherId =", value, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridNotEqualTo(Integer value) {
            addCriterion("teacherId <>", value, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridGreaterThan(Integer value) {
            addCriterion("teacherId >", value, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridGreaterThanOrEqualTo(Integer value) {
            addCriterion("teacherId >=", value, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridLessThan(Integer value) {
            addCriterion("teacherId <", value, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridLessThanOrEqualTo(Integer value) {
            addCriterion("teacherId <=", value, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridIn(List<Integer> values) {
            addCriterion("teacherId in", values, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridNotIn(List<Integer> values) {
            addCriterion("teacherId not in", values, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridBetween(Integer value1, Integer value2) {
            addCriterion("teacherId between", value1, value2, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridNotBetween(Integer value1, Integer value2) {
            addCriterion("teacherId not between", value1, value2, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeachernameIsNull() {
            addCriterion("teacherName is null");
            return (Criteria) this;
        }

        public Criteria andTeachernameIsNotNull() {
            addCriterion("teacherName is not null");
            return (Criteria) this;
        }

        public Criteria andTeachernameEqualTo(String value) {
            addCriterion("teacherName =", value, "teachername");
            return (Criteria) this;
        }

        public Criteria andTeachernameNotEqualTo(String value) {
            addCriterion("teacherName <>", value, "teachername");
            return (Criteria) this;
        }

        public Criteria andTeachernameGreaterThan(String value) {
            addCriterion("teacherName >", value, "teachername");
            return (Criteria) this;
        }

        public Criteria andTeachernameGreaterThanOrEqualTo(String value) {
            addCriterion("teacherName >=", value, "teachername");
            return (Criteria) this;
        }

        public Criteria andTeachernameLessThan(String value) {
            addCriterion("teacherName <", value, "teachername");
            return (Criteria) this;
        }

        public Criteria andTeachernameLessThanOrEqualTo(String value) {
            addCriterion("teacherName <=", value, "teachername");
            return (Criteria) this;
        }

        public Criteria andTeachernameLike(String value) {
            addCriterion("teacherName like", value, "teachername");
            return (Criteria) this;
        }

        public Criteria andTeachernameNotLike(String value) {
            addCriterion("teacherName not like", value, "teachername");
            return (Criteria) this;
        }

        public Criteria andTeachernameIn(List<String> values) {
            addCriterion("teacherName in", values, "teachername");
            return (Criteria) this;
        }

        public Criteria andTeachernameNotIn(List<String> values) {
            addCriterion("teacherName not in", values, "teachername");
            return (Criteria) this;
        }

        public Criteria andTeachernameBetween(String value1, String value2) {
            addCriterion("teacherName between", value1, value2, "teachername");
            return (Criteria) this;
        }

        public Criteria andTeachernameNotBetween(String value1, String value2) {
            addCriterion("teacherName not between", value1, value2, "teachername");
            return (Criteria) this;
        }

        public Criteria andTeacherpasswordIsNull() {
            addCriterion("teacherPassword is null");
            return (Criteria) this;
        }

        public Criteria andTeacherpasswordIsNotNull() {
            addCriterion("teacherPassword is not null");
            return (Criteria) this;
        }

        public Criteria andTeacherpasswordEqualTo(String value) {
            addCriterion("teacherPassword =", value, "teacherpassword");
            return (Criteria) this;
        }

        public Criteria andTeacherpasswordNotEqualTo(String value) {
            addCriterion("teacherPassword <>", value, "teacherpassword");
            return (Criteria) this;
        }

        public Criteria andTeacherpasswordGreaterThan(String value) {
            addCriterion("teacherPassword >", value, "teacherpassword");
            return (Criteria) this;
        }

        public Criteria andTeacherpasswordGreaterThanOrEqualTo(String value) {
            addCriterion("teacherPassword >=", value, "teacherpassword");
            return (Criteria) this;
        }

        public Criteria andTeacherpasswordLessThan(String value) {
            addCriterion("teacherPassword <", value, "teacherpassword");
            return (Criteria) this;
        }

        public Criteria andTeacherpasswordLessThanOrEqualTo(String value) {
            addCriterion("teacherPassword <=", value, "teacherpassword");
            return (Criteria) this;
        }

        public Criteria andTeacherpasswordLike(String value) {
            addCriterion("teacherPassword like", value, "teacherpassword");
            return (Criteria) this;
        }

        public Criteria andTeacherpasswordNotLike(String value) {
            addCriterion("teacherPassword not like", value, "teacherpassword");
            return (Criteria) this;
        }

        public Criteria andTeacherpasswordIn(List<String> values) {
            addCriterion("teacherPassword in", values, "teacherpassword");
            return (Criteria) this;
        }

        public Criteria andTeacherpasswordNotIn(List<String> values) {
            addCriterion("teacherPassword not in", values, "teacherpassword");
            return (Criteria) this;
        }

        public Criteria andTeacherpasswordBetween(String value1, String value2) {
            addCriterion("teacherPassword between", value1, value2, "teacherpassword");
            return (Criteria) this;
        }

        public Criteria andTeacherpasswordNotBetween(String value1, String value2) {
            addCriterion("teacherPassword not between", value1, value2, "teacherpassword");
            return (Criteria) this;
        }

        public Criteria andTeacherphoneIsNull() {
            addCriterion("teacherPhone is null");
            return (Criteria) this;
        }

        public Criteria andTeacherphoneIsNotNull() {
            addCriterion("teacherPhone is not null");
            return (Criteria) this;
        }

        public Criteria andTeacherphoneEqualTo(String value) {
            addCriterion("teacherPhone =", value, "teacherphone");
            return (Criteria) this;
        }

        public Criteria andTeacherphoneNotEqualTo(String value) {
            addCriterion("teacherPhone <>", value, "teacherphone");
            return (Criteria) this;
        }

        public Criteria andTeacherphoneGreaterThan(String value) {
            addCriterion("teacherPhone >", value, "teacherphone");
            return (Criteria) this;
        }

        public Criteria andTeacherphoneGreaterThanOrEqualTo(String value) {
            addCriterion("teacherPhone >=", value, "teacherphone");
            return (Criteria) this;
        }

        public Criteria andTeacherphoneLessThan(String value) {
            addCriterion("teacherPhone <", value, "teacherphone");
            return (Criteria) this;
        }

        public Criteria andTeacherphoneLessThanOrEqualTo(String value) {
            addCriterion("teacherPhone <=", value, "teacherphone");
            return (Criteria) this;
        }

        public Criteria andTeacherphoneLike(String value) {
            addCriterion("teacherPhone like", value, "teacherphone");
            return (Criteria) this;
        }

        public Criteria andTeacherphoneNotLike(String value) {
            addCriterion("teacherPhone not like", value, "teacherphone");
            return (Criteria) this;
        }

        public Criteria andTeacherphoneIn(List<String> values) {
            addCriterion("teacherPhone in", values, "teacherphone");
            return (Criteria) this;
        }

        public Criteria andTeacherphoneNotIn(List<String> values) {
            addCriterion("teacherPhone not in", values, "teacherphone");
            return (Criteria) this;
        }

        public Criteria andTeacherphoneBetween(String value1, String value2) {
            addCriterion("teacherPhone between", value1, value2, "teacherphone");
            return (Criteria) this;
        }

        public Criteria andTeacherphoneNotBetween(String value1, String value2) {
            addCriterion("teacherPhone not between", value1, value2, "teacherphone");
            return (Criteria) this;
        }

        public Criteria andTeacheremailIsNull() {
            addCriterion("teacherEmail is null");
            return (Criteria) this;
        }

        public Criteria andTeacheremailIsNotNull() {
            addCriterion("teacherEmail is not null");
            return (Criteria) this;
        }

        public Criteria andTeacheremailEqualTo(String value) {
            addCriterion("teacherEmail =", value, "teacheremail");
            return (Criteria) this;
        }

        public Criteria andTeacheremailNotEqualTo(String value) {
            addCriterion("teacherEmail <>", value, "teacheremail");
            return (Criteria) this;
        }

        public Criteria andTeacheremailGreaterThan(String value) {
            addCriterion("teacherEmail >", value, "teacheremail");
            return (Criteria) this;
        }

        public Criteria andTeacheremailGreaterThanOrEqualTo(String value) {
            addCriterion("teacherEmail >=", value, "teacheremail");
            return (Criteria) this;
        }

        public Criteria andTeacheremailLessThan(String value) {
            addCriterion("teacherEmail <", value, "teacheremail");
            return (Criteria) this;
        }

        public Criteria andTeacheremailLessThanOrEqualTo(String value) {
            addCriterion("teacherEmail <=", value, "teacheremail");
            return (Criteria) this;
        }

        public Criteria andTeacheremailLike(String value) {
            addCriterion("teacherEmail like", value, "teacheremail");
            return (Criteria) this;
        }

        public Criteria andTeacheremailNotLike(String value) {
            addCriterion("teacherEmail not like", value, "teacheremail");
            return (Criteria) this;
        }

        public Criteria andTeacheremailIn(List<String> values) {
            addCriterion("teacherEmail in", values, "teacheremail");
            return (Criteria) this;
        }

        public Criteria andTeacheremailNotIn(List<String> values) {
            addCriterion("teacherEmail not in", values, "teacheremail");
            return (Criteria) this;
        }

        public Criteria andTeacheremailBetween(String value1, String value2) {
            addCriterion("teacherEmail between", value1, value2, "teacheremail");
            return (Criteria) this;
        }

        public Criteria andTeacheremailNotBetween(String value1, String value2) {
            addCriterion("teacherEmail not between", value1, value2, "teacheremail");
            return (Criteria) this;
        }

        public Criteria andTeacherauthorityIsNull() {
            addCriterion("teacherAuthority is null");
            return (Criteria) this;
        }

        public Criteria andTeacherauthorityIsNotNull() {
            addCriterion("teacherAuthority is not null");
            return (Criteria) this;
        }

        public Criteria andTeacherauthorityEqualTo(String value) {
            addCriterion("teacherAuthority =", value, "teacherauthority");
            return (Criteria) this;
        }

        public Criteria andTeacherauthorityNotEqualTo(String value) {
            addCriterion("teacherAuthority <>", value, "teacherauthority");
            return (Criteria) this;
        }

        public Criteria andTeacherauthorityGreaterThan(String value) {
            addCriterion("teacherAuthority >", value, "teacherauthority");
            return (Criteria) this;
        }

        public Criteria andTeacherauthorityGreaterThanOrEqualTo(String value) {
            addCriterion("teacherAuthority >=", value, "teacherauthority");
            return (Criteria) this;
        }

        public Criteria andTeacherauthorityLessThan(String value) {
            addCriterion("teacherAuthority <", value, "teacherauthority");
            return (Criteria) this;
        }

        public Criteria andTeacherauthorityLessThanOrEqualTo(String value) {
            addCriterion("teacherAuthority <=", value, "teacherauthority");
            return (Criteria) this;
        }

        public Criteria andTeacherauthorityLike(String value) {
            addCriterion("teacherAuthority like", value, "teacherauthority");
            return (Criteria) this;
        }

        public Criteria andTeacherauthorityNotLike(String value) {
            addCriterion("teacherAuthority not like", value, "teacherauthority");
            return (Criteria) this;
        }

        public Criteria andTeacherauthorityIn(List<String> values) {
            addCriterion("teacherAuthority in", values, "teacherauthority");
            return (Criteria) this;
        }

        public Criteria andTeacherauthorityNotIn(List<String> values) {
            addCriterion("teacherAuthority not in", values, "teacherauthority");
            return (Criteria) this;
        }

        public Criteria andTeacherauthorityBetween(String value1, String value2) {
            addCriterion("teacherAuthority between", value1, value2, "teacherauthority");
            return (Criteria) this;
        }

        public Criteria andTeacherauthorityNotBetween(String value1, String value2) {
            addCriterion("teacherAuthority not between", value1, value2, "teacherauthority");
            return (Criteria) this;
        }

        public Criteria andIsparentIsNull() {
            addCriterion("isParent is null");
            return (Criteria) this;
        }

        public Criteria andIsparentIsNotNull() {
            addCriterion("isParent is not null");
            return (Criteria) this;
        }

        public Criteria andIsparentEqualTo(Byte value) {
            addCriterion("isParent =", value, "isparent");
            return (Criteria) this;
        }

        public Criteria andIsparentNotEqualTo(Byte value) {
            addCriterion("isParent <>", value, "isparent");
            return (Criteria) this;
        }

        public Criteria andIsparentGreaterThan(Byte value) {
            addCriterion("isParent >", value, "isparent");
            return (Criteria) this;
        }

        public Criteria andIsparentGreaterThanOrEqualTo(Byte value) {
            addCriterion("isParent >=", value, "isparent");
            return (Criteria) this;
        }

        public Criteria andIsparentLessThan(Byte value) {
            addCriterion("isParent <", value, "isparent");
            return (Criteria) this;
        }

        public Criteria andIsparentLessThanOrEqualTo(Byte value) {
            addCriterion("isParent <=", value, "isparent");
            return (Criteria) this;
        }

        public Criteria andIsparentIn(List<Byte> values) {
            addCriterion("isParent in", values, "isparent");
            return (Criteria) this;
        }

        public Criteria andIsparentNotIn(List<Byte> values) {
            addCriterion("isParent not in", values, "isparent");
            return (Criteria) this;
        }

        public Criteria andIsparentBetween(Byte value1, Byte value2) {
            addCriterion("isParent between", value1, value2, "isparent");
            return (Criteria) this;
        }

        public Criteria andIsparentNotBetween(Byte value1, Byte value2) {
            addCriterion("isParent not between", value1, value2, "isparent");
            return (Criteria) this;
        }

        public Criteria andParentidIsNull() {
            addCriterion("parentId is null");
            return (Criteria) this;
        }

        public Criteria andParentidIsNotNull() {
            addCriterion("parentId is not null");
            return (Criteria) this;
        }

        public Criteria andParentidEqualTo(Integer value) {
            addCriterion("parentId =", value, "parentid");
            return (Criteria) this;
        }

        public Criteria andParentidNotEqualTo(Integer value) {
            addCriterion("parentId <>", value, "parentid");
            return (Criteria) this;
        }

        public Criteria andParentidGreaterThan(Integer value) {
            addCriterion("parentId >", value, "parentid");
            return (Criteria) this;
        }

        public Criteria andParentidGreaterThanOrEqualTo(Integer value) {
            addCriterion("parentId >=", value, "parentid");
            return (Criteria) this;
        }

        public Criteria andParentidLessThan(Integer value) {
            addCriterion("parentId <", value, "parentid");
            return (Criteria) this;
        }

        public Criteria andParentidLessThanOrEqualTo(Integer value) {
            addCriterion("parentId <=", value, "parentid");
            return (Criteria) this;
        }

        public Criteria andParentidIn(List<Integer> values) {
            addCriterion("parentId in", values, "parentid");
            return (Criteria) this;
        }

        public Criteria andParentidNotIn(List<Integer> values) {
            addCriterion("parentId not in", values, "parentid");
            return (Criteria) this;
        }

        public Criteria andParentidBetween(Integer value1, Integer value2) {
            addCriterion("parentId between", value1, value2, "parentid");
            return (Criteria) this;
        }

        public Criteria andParentidNotBetween(Integer value1, Integer value2) {
            addCriterion("parentId not between", value1, value2, "parentid");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}